import {parseHtmlToAst} from './parseHtmlToAst'
import { generate } from './generate'
function compileToRenderFunciont(html){
    const ast = parseHtmlToAst(html);

    const code = generate(ast);
    const render = new Function(`
        with(this){
            return ${code}
        }`)

        return render;
}
export { 
    compileToRenderFunciont,
}